#include <iostream>
#include <string>
using namespace std;
int main()
{
    string pp = "hello";
    char p[8];
    int i;
    for( i=0;i<pp.length();i++)
        p[i] = pp[i];
    p[i] = '\0';
    printf("%s\n",p);
    cout<<p;
}